<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');
?>
<style>
.list-div {background:#EEF8F9; border:1px solid #BBDDE5; width:100%; margin:10px auto; width:99%;}
.list-div td {background:#FFFFFF; line-height:22px; text-align:center;}
.list-div td.title {background:#E2E9EA; line-height:22px; padding-left:20px; text-align:left;}
.list-div td span{color:#777;}
</style>
<div class="list-div">
    <table width="100%" border="0" cellpadding="3" cellspacing="1">
        <tr>
            <td colspan="4" class="title">会员购买率 <span>（会员购买率 = 有订单会员数 ÷ 会员总数）</span></td>
        </tr>
        <tr>
            <td>会员总数</td>
            <td>有订单会员数</td>
            <td>会员订单总数</td>
            <td>会员购买率</td>
        </tr>
        <tr>
            <td><?php echo $user_num; ?></td>
            <td><?php echo $total_fee; ?></td>
            <td><?php echo $user_order_num; ?></td>
            <td><?php echo number_format($total_fee/$user_num*100,2);?>%</td>
        </tr>
    </table>
</div>

<div class="list-div">
    <table width="100%" border="0" cellpadding="3" cellspacing="1">
        <tr>
            <td colspan="3" class="title">每会员平均订单数及购物额 <span>（每会员订单数 = 会员订单总数 ÷ 会员总数） （每会员购物额 = 会员购物总额 ÷ 会员总数）</span></td>
        </tr>
        <tr>
            <td>会员购物总额</td>
            <td>每会员订单数</td>
            <td>每会员购物额</td>
        </tr>
        <tr>
            <td>￥<?php echo number_format($user_turnover,2); ?></td>
            <td><?php echo number_format($user_order_num/$user_num*100,2);?>%</td>
            <td><?php echo number_format($user_turnover/$user_num*100,2);?>%</td>
        </tr>
    </table>
</div>
</body>
</html>